package com.momoda.monitor.bean;


import com.momoda.monitor.bean.FileInfo;
import lombok.Data;
import org.apache.commons.codec.digest.DigestUtils;

import java.io.File;
import java.io.IOException;
import java.util.List;

@Data
public class FileMetaInfo {

    public List<FileInfo> createFile;
    public List<FileInfo> changeFile;
    public List<FileInfo> removeFile;


    public static void main(String[] args) throws IOException {
//        String s1 = DigestUtils.md5Hex(JsonKit.toJson(ret.getContent()));
//        String s1 = DigestUtils.md5Hex(JsonKit.toJson(ret.getContent()));

        File file = new File("F:\\微信截图_20181212103725.png");
//        String s1  = DigestUtils.md5Hex(new FileInputStream(file));
        String s1 = DigestUtils.md5Hex("xuyy1");
        String s2 = "4377a2d1fa997182c204d28802ff8344";
        System.out.println(s1.equals(s2));
        System.out.println(s1);
    }

}
